package com.example.demo.controller;

import com.example.demo.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2023-02-24
 * Time: 21:47
 */
public class CommentController {
//    @Autowired
//    private CommentService commentsService;
//
//    /**
//     * 查找评论列表
//     * @param articleId
//     * @return
//     */
//    @GetMapping("article/{id}")
//    public Object comments(@PathVariable("id") Long articleId){
//        return commentsService.commentByArticleId(articleId);
//    }
//
//    /**
//     * 评论功能
//     * @param commentParam
//     * @return
//     */
//    @PostMapping("create/change")
//    public Object comment(@RequestBody CommentParam commentParam){
//        return commentsService.comment(commentParam);
//    }
}
